package com.cz.order.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * <p>PayFeignClient</p>
 * <pre>
 * @author gitamacai
 * @date 2019/12/10 15:52
 * </pre>
 */
@FeignClient(name = "pay-service")
public interface PayFeignClient {
    /**
     * 扣钱
     *
     * @param userId 用户
     * @param money  钱
     * @return 成功失败
     */
    @GetMapping("/pay/order/reduce")
    Boolean reduce(@RequestParam("userId") String userId, @RequestParam("money") int money);
}
